<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Agile Modbus: TCP Private Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Agile Modbus
   &#160;<span id="projectnumber">1.1.4</span>
   </div>
   <div id="projectbrief">Lightweight modbus protocol stack.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group___t_c_p___private___functions.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">TCP Private Functions<div class="ingroups"><a class="el" href="group___t_c_p.html">TCP</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for TCP Private Functions:</div>
<div class="dyncontent">
<div class="center"><img src="group___t_c_p___private___functions.png" border="0" usemap="#agroup______t__c__p______private______functions" alt=""/></div>
<map name="agroup______t__c__p______private______functions" id="agroup______t__c__p______private______functions">
<area shape="rect" href="group___t_c_p.html" title=" " alt="" coords="5,5,52,31"/>
<area shape="rect" title=" " alt="" coords="100,5,263,31"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga5368e75a4d452b51ba973e5cef464752"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_c_p___private___functions.html#ga5368e75a4d452b51ba973e5cef464752">agile_modbus_tcp_set_slave</a> (<a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *ctx, int slave)</td></tr>
<tr class="memdesc:ga5368e75a4d452b51ba973e5cef464752"><td class="mdescLeft">&#160;</td><td class="mdescRight">TCP set address interface.  <a href="group___t_c_p___private___functions.html#ga5368e75a4d452b51ba973e5cef464752">More...</a><br /></td></tr>
<tr class="separator:ga5368e75a4d452b51ba973e5cef464752"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga83bcbff089bd342862ecaf44d9bf2e47"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_c_p___private___functions.html#ga83bcbff089bd342862ecaf44d9bf2e47">agile_modbus_tcp_build_request_basis</a> (<a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *ctx, int function, int addr, int nb, uint8_t *req)</td></tr>
<tr class="memdesc:ga83bcbff089bd342862ecaf44d9bf2e47"><td class="mdescLeft">&#160;</td><td class="mdescRight">TCP builds the basic request message interface (header message)  <a href="group___t_c_p___private___functions.html#ga83bcbff089bd342862ecaf44d9bf2e47">More...</a><br /></td></tr>
<tr class="separator:ga83bcbff089bd342862ecaf44d9bf2e47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8fb22cc4a73e636d6bb6593d0e60f59c"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_c_p___private___functions.html#ga8fb22cc4a73e636d6bb6593d0e60f59c">agile_modbus_tcp_build_response_basis</a> (<a class="el" href="group___c_o_m_m_o_n___exported___types.html#gaa551bce4815f2889224102ac08f779ad">agile_modbus_sft_t</a> *sft, uint8_t *rsp)</td></tr>
<tr class="memdesc:ga8fb22cc4a73e636d6bb6593d0e60f59c"><td class="mdescLeft">&#160;</td><td class="mdescRight">TCP builds a basic response message interface (header message)  <a href="group___t_c_p___private___functions.html#ga8fb22cc4a73e636d6bb6593d0e60f59c">More...</a><br /></td></tr>
<tr class="separator:ga8fb22cc4a73e636d6bb6593d0e60f59c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae6a11c1140ecb35f8fb1e0b69c902f9b"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_c_p___private___functions.html#gae6a11c1140ecb35f8fb1e0b69c902f9b">agile_modbus_tcp_prepare_response_tid</a> (const uint8_t *req, int *req_length)</td></tr>
<tr class="memdesc:gae6a11c1140ecb35f8fb1e0b69c902f9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">TCP ready response interface.  <a href="group___t_c_p___private___functions.html#gae6a11c1140ecb35f8fb1e0b69c902f9b">More...</a><br /></td></tr>
<tr class="separator:gae6a11c1140ecb35f8fb1e0b69c902f9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7913f7526caca2249c83436540654751"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_c_p___private___functions.html#ga7913f7526caca2249c83436540654751">agile_modbus_tcp_send_msg_pre</a> (uint8_t *req, int req_length)</td></tr>
<tr class="memdesc:ga7913f7526caca2249c83436540654751"><td class="mdescLeft">&#160;</td><td class="mdescRight">TCP pre-send data interface (calculate the value of the length field and store it)  <a href="group___t_c_p___private___functions.html#ga7913f7526caca2249c83436540654751">More...</a><br /></td></tr>
<tr class="separator:ga7913f7526caca2249c83436540654751"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5636ca84a4a90e5b75fc3d2476838a9d"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_c_p___private___functions.html#ga5636ca84a4a90e5b75fc3d2476838a9d">agile_modbus_tcp_check_integrity</a> (<a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *ctx, uint8_t *msg, const int msg_length)</td></tr>
<tr class="memdesc:ga5636ca84a4a90e5b75fc3d2476838a9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">TCP check receiving data integrity interface.  <a href="group___t_c_p___private___functions.html#ga5636ca84a4a90e5b75fc3d2476838a9d">More...</a><br /></td></tr>
<tr class="separator:ga5636ca84a4a90e5b75fc3d2476838a9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga50d4eafae8f45c41c65aaa1f8b5087c8"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_c_p___private___functions.html#ga50d4eafae8f45c41c65aaa1f8b5087c8">agile_modbus_tcp_pre_check_confirmation</a> (<a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *ctx, const uint8_t *req, const uint8_t *rsp, int rsp_length)</td></tr>
<tr class="memdesc:ga50d4eafae8f45c41c65aaa1f8b5087c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">TCP pre-check confirmation interface (compare transaction identifier and protocol identifier)  <a href="group___t_c_p___private___functions.html#ga50d4eafae8f45c41c65aaa1f8b5087c8">More...</a><br /></td></tr>
<tr class="separator:ga50d4eafae8f45c41c65aaa1f8b5087c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga5368e75a4d452b51ba973e5cef464752"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5368e75a4d452b51ba973e5cef464752">&#9670;&nbsp;</a></span>agile_modbus_tcp_set_slave()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int agile_modbus_tcp_set_slave </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *&#160;</td>
          <td class="paramname"><em>ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>slave</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>TCP set address interface. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>modbus handle </td></tr>
    <tr><td class="paramname">slave</td><td>slave address </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0: success </dd></dl>

<p class="definition">Definition at line <a class="el" href="agile__modbus__tcp_8c_source.html#l00034">34</a> of file <a class="el" href="agile__modbus__tcp_8c_source.html">agile_modbus_tcp.c</a>.</p>

</div>
</div>
<a id="ga83bcbff089bd342862ecaf44d9bf2e47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga83bcbff089bd342862ecaf44d9bf2e47">&#9670;&nbsp;</a></span>agile_modbus_tcp_build_request_basis()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int agile_modbus_tcp_build_request_basis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *&#160;</td>
          <td class="paramname"><em>ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>req</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>TCP builds the basic request message interface (header message) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>modbus handle </td></tr>
    <tr><td class="paramname">function</td><td>function code </td></tr>
    <tr><td class="paramname">addr</td><td>register address </td></tr>
    <tr><td class="paramname">nb</td><td>number of registers </td></tr>
    <tr><td class="paramname">req</td><td>data storage pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>data length </dd></dl>

<p class="definition">Definition at line <a class="el" href="agile__modbus__tcp_8c_source.html#l00049">49</a> of file <a class="el" href="agile__modbus__tcp_8c_source.html">agile_modbus_tcp.c</a>.</p>

</div>
</div>
<a id="ga8fb22cc4a73e636d6bb6593d0e60f59c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8fb22cc4a73e636d6bb6593d0e60f59c">&#9670;&nbsp;</a></span>agile_modbus_tcp_build_response_basis()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int agile_modbus_tcp_build_response_basis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___c_o_m_m_o_n___exported___types.html#gaa551bce4815f2889224102ac08f779ad">agile_modbus_sft_t</a> *&#160;</td>
          <td class="paramname"><em>sft</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>rsp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>TCP builds a basic response message interface (header message) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sft</td><td>modbus header parameter structure pointer </td></tr>
    <tr><td class="paramname">rsp</td><td>data storage pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>data length </dd></dl>

<p class="definition">Definition at line <a class="el" href="agile__modbus__tcp_8c_source.html#l00086">86</a> of file <a class="el" href="agile__modbus__tcp_8c_source.html">agile_modbus_tcp.c</a>.</p>

</div>
</div>
<a id="gae6a11c1140ecb35f8fb1e0b69c902f9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae6a11c1140ecb35f8fb1e0b69c902f9b">&#9670;&nbsp;</a></span>agile_modbus_tcp_prepare_response_tid()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int agile_modbus_tcp_prepare_response_tid </td>
          <td>(</td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>req_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>TCP ready response interface. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>request data pointer </td></tr>
    <tr><td class="paramname">req_length</td><td>request data length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>transaction identifier </dd></dl>

<p class="definition">Definition at line <a class="el" href="agile__modbus__tcp_8c_source.html#l00114">114</a> of file <a class="el" href="agile__modbus__tcp_8c_source.html">agile_modbus_tcp.c</a>.</p>

</div>
</div>
<a id="ga7913f7526caca2249c83436540654751"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7913f7526caca2249c83436540654751">&#9670;&nbsp;</a></span>agile_modbus_tcp_send_msg_pre()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int agile_modbus_tcp_send_msg_pre </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>req_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>TCP pre-send data interface (calculate the value of the length field and store it) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>data storage pointer </td></tr>
    <tr><td class="paramname">req_length</td><td>existing data length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>data length </dd></dl>

<p class="definition">Definition at line <a class="el" href="agile__modbus__tcp_8c_source.html#l00126">126</a> of file <a class="el" href="agile__modbus__tcp_8c_source.html">agile_modbus_tcp.c</a>.</p>

</div>
</div>
<a id="ga5636ca84a4a90e5b75fc3d2476838a9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5636ca84a4a90e5b75fc3d2476838a9d">&#9670;&nbsp;</a></span>agile_modbus_tcp_check_integrity()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int agile_modbus_tcp_check_integrity </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *&#160;</td>
          <td class="paramname"><em>ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>msg_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>TCP check receiving data integrity interface. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>modbus handle </td></tr>
    <tr><td class="paramname">msg</td><td>Receive data pointer </td></tr>
    <tr><td class="paramname">msg_length</td><td>valid data length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>valid data length </dd></dl>

<p class="definition">Definition at line <a class="el" href="agile__modbus__tcp_8c_source.html#l00144">144</a> of file <a class="el" href="agile__modbus__tcp_8c_source.html">agile_modbus_tcp.c</a>.</p>

</div>
</div>
<a id="ga50d4eafae8f45c41c65aaa1f8b5087c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga50d4eafae8f45c41c65aaa1f8b5087c8">&#9670;&nbsp;</a></span>agile_modbus_tcp_pre_check_confirmation()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int agile_modbus_tcp_pre_check_confirmation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___c_o_m_m_o_n___exported___types.html#gad07c76f52ecac865589bdea79112ccb6">agile_modbus_t</a> *&#160;</td>
          <td class="paramname"><em>ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>rsp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rsp_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>TCP pre-check confirmation interface (compare transaction identifier and protocol identifier) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>modbus handle </td></tr>
    <tr><td class="paramname">req</td><td>request data pointer </td></tr>
    <tr><td class="paramname">rsp</td><td>response data pointer </td></tr>
    <tr><td class="paramname">rsp_length</td><td>response data length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0: success; others: exception </dd></dl>

<p class="definition">Definition at line <a class="el" href="agile__modbus__tcp_8c_source.html#l00159">159</a> of file <a class="el" href="agile__modbus__tcp_8c_source.html">agile_modbus_tcp.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
